Optimal. Leaf size=483 \[ -\frac {i \sqrt {2} \sqrt {a} e^{3/2} \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right ) \sec (c+d x)}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {2} \sqrt {a} e^{3/2} \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right ) \sec (c+d x)}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {a} e^{3/2} \log \left (a-\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {i \sqrt {a} e^{3/2} \log \left (a+\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 483, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 8, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {3580, 3576,
303, 1176, 631, 210, 1179, 642} \begin {gather*} -\frac {i \sqrt {2} \sqrt {a} e^{3/2} \sec (c+d x) \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {2} \sqrt {a} e^{3/2} \sec (c+d x) \text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {a} e^{3/2} \sec (c+d x) \log \left (-\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))+a\right )}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {i \sqrt {a} e^{3/2} \sec (c+d x) \log \left (\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))+a\right )}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 303
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 3576
Rule 3580
Rubi steps
\begin {align*} \int \frac {(e \sec (c+d x))^{3/2}}{\sqrt {a+i a \tan (c+d x)}} \, dx &=\frac {(e \sec (c+d x)) \int \sqrt {e \sec (c+d x)} \sqrt {a-i a \tan (c+d x)} \, dx}{\sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ &=\frac {\left (4 i a e^3 \sec (c+d x)\right ) \text {Subst}\left (\int \frac {x^2}{a^2+e^2 x^4} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ &=-\frac {\left (2 i a e^2 \sec (c+d x)\right ) \text {Subst}\left (\int \frac {a-e x^2}{a^2+e^2 x^4} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (2 i a e^2 \sec (c+d x)\right ) \text {Subst}\left (\int \frac {a+e x^2}{a^2+e^2 x^4} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ &=\frac {(i a e \sec (c+d x)) \text {Subst}\left (\int \frac {1}{\frac {a}{e}-\frac {\sqrt {2} \sqrt {a} x}{\sqrt {e}}+x^2} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {(i a e \sec (c+d x)) \text {Subst}\left (\int \frac {1}{\frac {a}{e}+\frac {\sqrt {2} \sqrt {a} x}{\sqrt {e}}+x^2} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (i \sqrt {a} e^{3/2} \sec (c+d x)\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt {a}}{\sqrt {e}}+2 x}{-\frac {a}{e}-\frac {\sqrt {2} \sqrt {a} x}{\sqrt {e}}-x^2} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (i \sqrt {a} e^{3/2} \sec (c+d x)\right ) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt {a}}{\sqrt {e}}-2 x}{-\frac {a}{e}+\frac {\sqrt {2} \sqrt {a} x}{\sqrt {e}}-x^2} \, dx,x,\frac {\sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}\right )}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ &=\frac {i \sqrt {a} e^{3/2} \log \left (a-\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {i \sqrt {a} e^{3/2} \log \left (a+\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {\left (i \sqrt {2} \sqrt {a} e^{3/2} \sec (c+d x)\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {\left (i \sqrt {2} \sqrt {a} e^{3/2} \sec (c+d x)\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right )}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ &=-\frac {i \sqrt {2} \sqrt {a} e^{3/2} \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right ) \sec (c+d x)}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {2} \sqrt {a} e^{3/2} \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {a} \sqrt {e \sec (c+d x)}}\right ) \sec (c+d x)}{d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+\frac {i \sqrt {a} e^{3/2} \log \left (a-\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}-\frac {i \sqrt {a} e^{3/2} \log \left (a+\frac {\sqrt {2} \sqrt {a} \sqrt {e} \sqrt {a-i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}}+\cos (c+d x) (a-i a \tan (c+d x))\right ) \sec (c+d x)}{\sqrt {2} d \sqrt {a-i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.45, size = 302, normalized size = 0.63 \begin {gather*} \frac {2 e \sqrt {e \sec (c+d x)} \left (\tanh ^{-1}\left (\frac {\sqrt {1+i \cos (c)-\sin (c)} \sqrt {i-\tan \left (\frac {d x}{2}\right )}}{\sqrt {-1+i \cos (c)+\sin (c)} \sqrt {i+\tan \left (\frac {d x}{2}\right )}}\right ) \sqrt {-1-i \cos (c)-\sin (c)} \sqrt {1+i \cos (c)-\sin (c)}-\tanh ^{-1}\left (\frac {\sqrt {1-i \cos (c)+\sin (c)} \sqrt {i-\tan \left (\frac {d x}{2}\right )}}{\sqrt {-1-i \cos (c)-\sin (c)} \sqrt {i+\tan \left (\frac {d x}{2}\right )}}\right ) \sqrt {1-i \cos (c)+\sin (c)} \sqrt {-1+i \cos (c)+\sin (c)}\right ) (\cos (d x)+i \sin (d x)) \sqrt {i+\tan \left (\frac {d x}{2}\right )}}{d \sqrt {-1-i \cos (c)-\sin (c)} \sqrt {-1+i \cos (c)+\sin (c)} \sqrt {i-\tan \left (\frac {d x}{2}\right )} \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.12, size = 232, normalized size = 0.48
method | result | size |
default | \(\frac {\left (\frac {e}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \left (\cos ^{2}\left (d x +c \right )\right ) \left (-1+\cos \left (d x +c \right )\right )^{2} \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (i \arctanh \left (\frac {\sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1+\sin \left (d x +c \right )\right )}{2}\right )-i \arctanh \left (\frac {\sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1-\sin \left (d x +c \right )\right )}{2}\right )+\arctanh \left (\frac {\sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1+\sin \left (d x +c \right )\right )}{2}\right )+\arctanh \left (\frac {\sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1-\sin \left (d x +c \right )\right )}{2}\right )\right )}{d \sin \left (d x +c \right )^{3} \left (\frac {1}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )-1\right ) a}\) | \(232\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 713 vs. \(2 (343) = 686\).
time = 0.58, size = 713, normalized size = 1.48 \begin {gather*} -\frac {{\left (2 i \, \sqrt {2} \arctan \left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) + 2 i \, \sqrt {2} \arctan \left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1, -\sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) + 2 i \, \sqrt {2} \arctan \left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) + 2 i \, \sqrt {2} \arctan \left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1, -\sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - 2 \, \sqrt {2} \arctan \left (\sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sin \left (d x + c\right ), \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \cos \left (d x + c\right ) + 1\right ) + 2 \, \sqrt {2} \arctan \left (-\sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \sin \left (d x + c\right ), -\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + \cos \left (d x + c\right ) + 1\right ) + i \, \sqrt {2} \log \left (2 \, \sqrt {2} \sin \left (d x + c\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, {\left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + 2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - i \, \sqrt {2} \log \left (-2 \, \sqrt {2} \sin \left (d x + c\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, {\left (\sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )} \cos \left (d x + c\right ) + \cos \left (d x + c\right )^{2} + 2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (d x + c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - \sqrt {2} \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) + \sqrt {2} \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) - \sqrt {2} \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right ) + \sqrt {2} \log \left (2 \, \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sqrt {2} \cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 2\right )\right )} e^{\frac {3}{2}}}{4 \, \sqrt {a} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 357, normalized size = 0.74 \begin {gather*} \frac {1}{2} \, \sqrt {\frac {4 i \, e^{3}}{a d^{2}}} \log \left ({\left (i \, a d \sqrt {\frac {4 i \, e^{3}}{a d^{2}}} + \frac {2 \, \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (e^{\frac {3}{2}} + e^{\left (2 i \, d x + 2 i \, c + \frac {3}{2}\right )}\right )} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )}}{\sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-\frac {3}{2}\right )}\right ) - \frac {1}{2} \, \sqrt {\frac {4 i \, e^{3}}{a d^{2}}} \log \left ({\left (-i \, a d \sqrt {\frac {4 i \, e^{3}}{a d^{2}}} + \frac {2 \, \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (e^{\frac {3}{2}} + e^{\left (2 i \, d x + 2 i \, c + \frac {3}{2}\right )}\right )} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )}}{\sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-\frac {3}{2}\right )}\right ) + \frac {1}{2} \, \sqrt {-\frac {4 i \, e^{3}}{a d^{2}}} \log \left ({\left (i \, a d \sqrt {-\frac {4 i \, e^{3}}{a d^{2}}} + \frac {2 \, \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (e^{\frac {3}{2}} + e^{\left (2 i \, d x + 2 i \, c + \frac {3}{2}\right )}\right )} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )}}{\sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-\frac {3}{2}\right )}\right ) - \frac {1}{2} \, \sqrt {-\frac {4 i \, e^{3}}{a d^{2}}} \log \left ({\left (-i \, a d \sqrt {-\frac {4 i \, e^{3}}{a d^{2}}} + \frac {2 \, \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (e^{\frac {3}{2}} + e^{\left (2 i \, d x + 2 i \, c + \frac {3}{2}\right )}\right )} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )}}{\sqrt {e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-\frac {3}{2}\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}{\sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {e}{\cos \left (c+d\,x\right )}\right )}^{3/2}}{\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________